import React, {Component} from 'react'
import {BrowserRouter as Router, Route, Swich, Link} from 'react-router-dom'
import Home from 'Component/Home/home.js'
import Login from 'Component/Login/login.js'

class Root extends React.Component {
    render() {
        return (
            <div>
                <Router>
                    <div>
                        <Route path='/home' component={Home} />
                        <Route path='/login' component={Login} />
                    </div>
                </Router>
            </div>
        )
    }
}

export default Root